import _axios, {post} from '../ck/plugin/axios'

class CourseOrder{

  //订单列表
  static async PageSearch(data){
    return post('api/Manage/CourseOrder/PageSearch',data)
  }

  //退款操作
  static async RefundOrder(data){
    return post('api/Manage/CourseOrder/RefundOrder',data)
  }

  //班级调整
  static async ClassAdjustment(data){
    return post('api/Manage/CourseOrder/ClassAdjustment',data)
  }

  //线下下单
  // static async ManagePurchaseCourse(data){
  //   return post('api/Manage/CourseOrder/ManagePurchaseCourse',data)
  // }
  static ManagePurchaseCourse (data) {
    return _axios({
      method: 'post' ,
      url: 'api/Manage/CourseOrder/ManagePurchaseCourse',
      data,
      statusShow: true
    })
  }
  //确认下单
  static async AcknowledgementOrder(data){
    return post('api/Manage/CourseOrder/AcknowledgementOrder',data)
  }

  //在线开票
  static async OnlineInvoicing(data){
    return post('api/Manage/CourseOrder/OnlineInvoicing',data)
  }

}

export default CourseOrder
